package cn.smile.bean.form.basic.shop;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

@Data
public class SaveShopForm {

    private String id;

    /**
     * 店铺名称
     */
    @NotBlank(message = "请输入店铺名称")
    @Length(min = 2, max = 50, message = "店铺名称2-50个字符")
    private String shopName;

    /**
     * 店铺地址
     */
    @NotBlank(message = "请输入店铺地址")
    @Length(min = 5, max = 500, message = "店铺地址5-500个字符")
    private String shopAddress;

    /**
     * 店铺电话
     */
    @NotBlank(message = "请输入联系方式")
    private String shopPhone;

    /**
     * 店铺邀请码
     */
    private String shopCode;

    /**
     * 开始营业时间
     */
    @NotNull(message = "请选择开始营业时间")
    @JsonFormat(pattern = "HH:mm", timezone = "GMT+8")
    private Date openingHoursStart;

    /**
     * 结束营业时间
     */
    @NotNull(message = "请选择结束营业时间")
    @JsonFormat(pattern = "HH:mm", timezone = "GMT+8")
    private Date openingHoursEnd;
}
